#!/usr/bin/env bash

python_file_path="/projects/canndev/ops/built-in/tbe/impl/dynamic/resize_nearest_bilinear_2d.py"
conf_file_path="/projects/canndev/ops/built-in/tests/st/ResizeNearestNeighborV2/pylint.conf"
log_file_path="/projects/canndev/ops/built-in/tests/st/ResizeNearestNeighborV2/pylint_log.txt"

if [ -f $log_file_path ]; then
    rm -f $log_file_path
fi
touch $log_file_path
code $log_file_path
yapf -p --style='{based_on_style: google, indent_width: 4, column_limit: 120}' -i -r $python_file_path
cd /
pylint $python_file_path --rcfile=$conf_file_path > $log_file_path